package com.jiashihui.schema_lgorithm.schema.command;

/**
 * @author jiashihui
 * @describe: 命令实现类
 * @date 2019/03/13
 */
public class CommandImpl implements Command {

    /* 接收者 */
    private Receiver receiver;

    public CommandImpl(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        receiver.action();
    }
}
